** Hamel and Bauer, PAG
** Experimental analyses

use exp_data.dta

** Table 2
tab full_conditions, m

** Figure 1 and Table A7
ttest voteR1 if full_conditions==1|full_conditions==3, by(full_conditions)
ttest voteR1 if full_conditions==2|full_conditions==4, by(full_conditions)
ttest voteR1 if full_conditions==1|full_conditions==2, by(full_conditions)
ttest voteR1 if full_conditions==3|full_conditions==4, by(full_conditions)

ttest fav1 if full_conditions==1|full_conditions==3, by(full_conditions)
ttest fav1 if full_conditions==2|full_conditions==4, by(full_conditions)
ttest fav1 if full_conditions==1|full_conditions==2, by(full_conditions)
ttest fav1 if full_conditions==3|full_conditions==4, by(full_conditions)

** Table A8
reg fav1 gender_condition##hospital##c.interest_midterm follow_new south white college   income ideo 
reg voteR1 gender_condition##hospital##c.interest_midterm follow_new  south white college   income ideo 

reg fav1 gender_condition##hospital##c.follow_new interest_midterm  south white college   income ideo 
reg voteR1 gender_condition##hospital##c.follow_new interest_midterm south white college   income ideo 

reg fav1 gender_condition##hospital##college follow_new interest_midterm  south white  income ideo 
reg voteR1 gender_condition##hospital##college follow_new interest_midterm south white   income ideo 

** Table A9
ttest voteR1 if full_conditions==1&democrat==1|full_conditions==2&democrat==1, by(full_conditions) 
ttest voteR1 if full_conditions==1&democrat==0|full_conditions==2&democrat==0, by(full_conditions) 
ttest voteR1 if full_conditions==3&democrat==1|full_conditions==4&democrat==1, by(full_conditions) 
ttest voteR1 if full_conditions==3&democrat==0|full_conditions==4&democrat==0, by(full_conditions) 

ttest fav1 if full_conditions==1&democrat==1|full_conditions==2&democrat==1, by(full_conditions) 
ttest fav1 if full_conditions==1&democrat==0|full_conditions==2&democrat==0, by(full_conditions) 
ttest fav1 if full_conditions==3&democrat==1|full_conditions==4&democrat==1, by(full_conditions) 
ttest fav1 if full_conditions==3&democrat==0|full_conditions==4&democrat==0, by(full_conditions) 

** Table A10
ttest voteR1 if full_conditions==1, by(democrat)
ttest voteR1 if full_conditions==2, by(democrat)
ttest voteR1 if full_conditions==3, by(democrat)
ttest voteR1 if full_conditions==4, by(democrat)

ttest fav1 if full_conditions==1, by(democrat)
ttest fav1 if full_conditions==2, by(democrat)
ttest fav1 if full_conditions==3, by(democrat)
ttest fav1 if full_conditions==4, by(democrat)


